home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WWII Attack! from Pearl Harbor to Potsdam
/
WWII Attack - From Pearl Harbor to Potsdam - Disc 3.iso
/
pc
/
us
/
shared.cst
/
00030_Script_30
< prev
next >
Wrap
Text File
|
1999-11-23
|
2KB
|
56 lines
on rename start, stop
repeat with n = start to stop
put the name of cast n into myName
put n + 1 - start into word 2 of myName
set the name of cast n to myName
end repeat
end
on rescript
global channel, nextMovie
set badScript to field "bad script"
set myCast to the castNum of sprite channel
if myCast <> 0 then
set oldScript to the scriptText of cast myCast
put the number of lines of oldScript into lineCount
put line lineCount - 2 of oldScript into aMovie
if offset("go to movie", aMovie) <> 0 then
set nextMovie to aMovie
end if
if offset(badScript, oldScript) <> 0 then
put "on mouseDown" & RETURN into newScript
put " global Dir4Path" & RETURN after newScript
put line 2 of oldScript & RETURN after newScript
put the number of lines of oldScript into lineCount
put line lineCount - 2 of oldScript into aMovie
if offset("play done", aMovie) <> 0 then
put " put Dir4Path & " into aMovie
put QUOTE & "IBCMENU.DIR" & QUOTE after aMovie
put " into next" & RETURN after aMovie
put " go to movie next" & RETURN after aMovie
end if
set badOff = offset(badScript, aMovie)
if badOff <> 0 then
put "go to movie Dir4Path & " & QUOTE into char badOff¨
to badOff + length(badScript) - 1 of aMovie
end if
set aPCMovie to aMovie
repeat while offset(":", aPCMovie) <> 0
put "\" into char offset(":", aPCMovie) of aPCMovie
end repeat
if aPCMovie <> aMovie then
put " if the machineType = 256 then" & RETURN after newScript
put " " & aPCMovie & RETURN after newScript
put " else" & RETURN after newScript
put " " & aMovie & RETURN after newScript
put " end if" & RETURN after newScript
else
put aMovie & RETURN after newScript
end if
put "end" & RETURN after newScript
put newScript
set the scriptText of cast myCast to newScript
end if
end if
end